package lt.marsrutai.mobile.android;

import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;

import android.app.Application;
import android.content.Context;

@ReportsCrashes(formKey = "dEZYTi1zZEExa2NjbllGTHZfQmh3aVE6MQ")
public class MarsrutaiLTApp extends Application {

    private static MarsrutaiLTApp instance;

    public MarsrutaiLTApp() {
        instance = this;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        AppContext.init(instance);
        ACRA.init(this);
    }

    public static Context getContext() {
        return instance;
    }

}
